﻿
using BCCommon;
using BCCommon.Enums;
using BCData.Sim.Admin.AdminAuth;
using BCDto.Sim.Admin.AdminAuth;
using BCEntity.Sim.Admin.AdminAuth;
using BCService.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BCService.Sim.Admin.AdminAuth
{
    /// <summary>
    /// 员工授权信息
    /// </summary>
    public interface IAdminAuthService
    {
        #region  成员方法
        /// <summary>
        /// 是否存在此记录
        /// </summary>
        /// <param name="adminAuthId">员工授权信息Id</param>
        bool Exists(long adminAuthId);
        /// <summary>
        /// 添加员工授权信息
        /// </summary>
        /// <param name="requestDto">员工授权信息信息</param>
        AdminAuthDto Add(AdminAuthRequestDto requestDto);
        /// <summary>
        /// 更新员工授权信息
        /// </summary>
        /// <param name="putDto">员工授权信息信息</param>
        AdminAuthDto Update(AdminAuthPutDto putDto);
        /// <summary>
        /// 删除员工授权信息
        /// </summary>
        /// <param name="adminAuthId">员工授权信息Id</param>
        bool Delete(long adminAuthId);
        /// <summary>
        /// 获取员工授权信息
        /// </summary>
        /// <param name="adminAuthId">员工授权信息Id</param>
        AdminAuthDto Get(long adminAuthId);
        /// <summary>
        /// 获取员工授权信息
        /// </summary>
        /// <param name="authType">授权类型</param>
        /// <param name="unionId">授权唯一标识</param>
        AdminAuthDto Get(AuthType authType, string unionId);
        /// <summary>
        /// 获取员工授权信息列表
        /// </summary>
        /// <param name="adminId">管理员Id</param>
        IEnumerable<AdminAuthDto> GetList(long adminId);
        /// <summary>
        /// 获取员工授权信息分页列表
        /// </summary>
        /// <param name="start">开始时间</param>
        /// <param name="end">结束时间</param>
        /// <param name="sortName">排序字段</param>
        /// <param name="ascending">升序</param>
        /// <param name="pageIndex">当前页码</param>
        /// <param name="pageSize">员工授权信息每页数据条数</param>
        PageableList<AdminAuthDto> Query(DateTime? start, DateTime? end, string sortName, bool? ascending, int pageIndex, int pageSize);
        #endregion  成员方法
    }
}